//package com.travel.travelServer.controller1;
//
//import com.travel.travelServer.entity1.Role;
//import com.travel.travelServer.entity1.vo.RoleVo;
//import com.travel.travelServer.utils.AjaxResult;
//import com.travel.travelServer.service1.RoleService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.http.MediaType;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.List;
//
///**
// * <p>
// *  role表 前端控制器
// * </p>
// *
// * @author <>
// *
// */
//@RestController
//@RequestMapping(value = "/Role", produces = MediaType.APPLICATION_JSON_VALUE)
//public class RoleController {
//
//    @Autowired
//    RoleService roleService;
//
//    @PostMapping(value = "/addInfo")
//    public AjaxResult addInfo(@RequestBody RoleVo roleVo) {
//        return AjaxResult.success(roleService.insertRole(roleVo));
//    }
//
//    @DeleteMapping(value = "/removeInfoById/{id}")
//    public AjaxResult removeInfo(@PathVariable(value = "id") Long id) {
//        return AjaxResult.success(roleService.deleteById(id));
//    }
//
//    @GetMapping(value = "/removeInfoByIds/{ids}")
//    public AjaxResult removeInfos(@PathVariable(value = "ids") Long[] ids) {
//        return AjaxResult.success(roleService.deleteByIds(ids));
//    }
//
//    @PostMapping(value = "/editInfo")
//    public AjaxResult editInfo(@RequestBody RoleVo roleVo) {
//        return AjaxResult.success(roleService.updateRole(roleVo));
//    }
//
//    @GetMapping(value = "/getInfoById/{id}")
//    public AjaxResult getInfo(@PathVariable(value = "id") Long id) {
//        return AjaxResult.success(roleService.selectById(id));
//    }
//
//    @GetMapping(value = "/getPageInfo")
//    public AjaxResult getInfoPage(RoleVo roleVo) {
//        return AjaxResult.success(roleService.getInfoPage(roleVo));
//    }
//
//    @GetMapping(value = "/getInfoList")
//    public AjaxResult getInfoList(RoleVo roleVo) {
//        List<Role> roles = roleService.selectRoleList(roleVo);
//        return AjaxResult.success(roles);
//    }
//
////    @PostMapping("/export")
////    public void export(HttpServletResponse response, RoleVo roleVo) {
////        List<Role> list = roleService.selectRoleList(roleVo);
////        ExcelUtil<Role> util = new ExcelUtil<Role>(Role.class);
////        util.exportExcel(response, list, "数据导出", StringUtils.EMPTY);
////    }
//
//
//}
